package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"hem/api/internal/config"
	"hem/hemrpc/hemrpcclient"
)

type ServiceContext struct {
	Config config.Config
	hemrpcclient.Hemrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		Hemrpc: hemrpcclient.NewHemrpc(zrpc.MustNewClient(c.HemRpc)),
	}
}
